package com.hyt.it.ogt.ks.model.entity;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.alibaba.fastjson.JSON;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 轨迹表-其他轨迹表
 * </p>
 *
 * @author liteng
 * @since 2022-11-22
 */
@Data
@Builder
@Accessors(chain = true)
@TableName("ks_candidate_log_other")
@ApiModel(value="CandidateLogOther对象", description="轨迹表-其他轨迹表")
@AllArgsConstructor
@NoArgsConstructor
public class CandidateLogOther implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.INPUT)
    @ApiModelProperty(value = "UUID(32位)")
    private String id;

    @ApiModelProperty(value = "考试ID")
    private String examId;

    @ApiModelProperty(value = "考生ID")
    private String candidateId;

    @ApiModelProperty(value = "事件类型，1答题记录")
    private Integer eventType;

    @ApiModelProperty(value = "其他")
    private Integer operateType;

    @ApiModelProperty(value = "操作内容")
    private String operateContent;

    @ApiModelProperty(value = "操作人")
    private String operateUser;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime beginTime;

    /**
     * 人脸核身 设备检测 的json：{"applyResult":"1")}
     *
     */
    @Data
    @Accessors(chain = true)
    public static class OperateContent {
        /**
         * 人脸核身 设备检测  1-通过 2-不通过
         */
        private Integer applyResult;

        /**
         * 原因
         */
        private String reason;
    }
}
